/**
 * 
 */
package com.eis.admin.mvc.bean;

import java.util.ArrayList;
import java.util.List;

import com.eis.function.out.rule.model.StatusCondition;

/**
 * @author sh-panwei01
 *
 */
public class StatusRuleDetailBean {
	private String functionId;
	private String operation2;

	private String ruleId;
	private int editRuleStatus;
	private int conditionEditIndex;
	private List<StatusCondition> statusConditionList = new ArrayList<StatusCondition>();
	
	public int getConditionEditIndex() {
		this.conditionEditIndex = statusConditionList.size();
		return conditionEditIndex;
	}
	public void setConditionEditIndex(int conditionEditIndex) {
		this.conditionEditIndex = conditionEditIndex;
	}
	public String getFunctionId() {
		return functionId;
	}
	public void setFunctionId(String functionId) {
		this.functionId = functionId;
	}
	public String getOperation2() {
		return operation2;
	}
	public void setOperation2(String operation2) {
		this.operation2 = operation2;
	}
	public int getEditRuleStatus() {
		return editRuleStatus;
	}
	public void setEditRuleStatus(int editRuleStatus) {
		this.editRuleStatus = editRuleStatus;
	}
	public int getCondidtionCount() {
		if (statusConditionList != null) {
			return statusConditionList.size();
		} else {
			return 0;
		}
	}
	public List<StatusCondition> getStatusConditionList() {
		return statusConditionList;
	}
	public void setStatusConditionList(List<StatusCondition> statusConditionList) {
		this.statusConditionList = statusConditionList;
	}
	public String getRuleId() {
		return ruleId;
	}
	public void setRuleId(String ruleId) {
		this.ruleId = ruleId;
	}
}
